home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Dylan Related / Mindy / Mindy 1.2 - portable sources / comp / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-03-15  |  6.7 KB  |  182 lines  |  [TEXT/ttxt]

  1. ######################################################################
  2. ##
  3. ## Copyright (c) 1994  Carnegie Mellon University
  4. ## All rights reserved.
  5. ## 
  6. ## Use and copying of this software and preparation of derivative
  7. ## works based on this software are permitted, including commercial
  8. ## use, provided that the following conditions are observed:
  9. ## 
  10. ## 1. This copyright notice must be retained in full on any copies
  11. ##    and on appropriate parts of any derivative works.
  12. ## 2. Documentation (paper or online) accompanying any system that
  13. ##    incorporates this software, or any part of it, must acknowledge
  14. ##    the contribution of the Gwydion Project at Carnegie Mellon
  15. ##    University.
  16. ## 
  17. ## This software is made available "as is".  Neither the authors nor
  18. ## Carnegie Mellon University make any warranty about the software,
  19. ## its performance, or its conformity to any specification.
  20. ## 
  21. ## Bug reports, questions, comments, and suggestions should be sent by
  22. ## E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  23. ##
  24. ######################################################################
  25. ##
  26. ##  $Header: Makefile.in,v 1.5 94/10/26 19:47:21 nkramer Exp $
  27. ##
  28. ##  This is the makefile for the Mindy byte-compiler.
  29. ##
  30.  
  31. SHELL    =    /bin/sh
  32.  
  33. ##
  34. ## begin autoconf'ed source
  35. ##
  36.  
  37. prefix    =        @prefix@
  38. exec_prefix    =    @exec_prefix@
  39. srcdir    =        @srcdir@
  40.  
  41. SRCDIR    =        ${srcdir}
  42. BINDIR    =        ${exec_prefix}/bin
  43. LIBDIR    =        ${exec_prefix}/lib/mindy
  44.  
  45. CC    =        @CC@
  46. CCOPTS    =        @CCOPTS@
  47. CFLAGS    =        $(CCOPTS) -I${SRCDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
  48. YACC    =        @YACC@
  49. YFLAGS    =        -d
  50. LEX    =        @LEX@
  51. LFLAGS    =        @LFLAGS@
  52. RANLIB    =        @RANLIB@
  53. INSTALL    =        @INSTALL@
  54. INSTALL_PROGRAM    =    @INSTALL_PROGRAM@
  55. INSTALL_DATA    =    @INSTALL_DATA@
  56.  
  57. LIBOBJS =        @LIBOBJS@
  58. LIBS    =        ../compat/libcompat.a @LIBS@
  59.  
  60. ##
  61. ## end of configure written portion
  62. ##
  63.  
  64. OBJS = mindycomp.o parser.tab.o lexer.tab.o src.o sym.o print.o expand.o \
  65.     literal.o info.o lose.o lexenv.o envanal.o compile.o header.o \
  66.     dump.o free.o dup.o
  67.  
  68. SRCS = mindycomp.c parser.tab.c lexer.tab.c src.c sym.c print.c expand.c \
  69.     literal.c info.c lose.c lexenv.c envanal.c compile.c header.c \
  70.     dump.c free.c dup.c
  71.  
  72. mindycomp: ${OBJS}
  73.     ${CC} ${OBJS} -DVERSION=\""`/bin/date`"\" ${SRCDIR}/version.c ${LIBS} -o ,$@
  74.     mv ,$@ $@
  75.  
  76. ${SRCDIR}/parser.tab.c: ${SRCDIR}/parser.y
  77.     ${YACC} -d ${SRCDIR}/parser.y
  78.     mv y.tab.c ${SRCDIR}/parser.tab.c
  79.     mv y.tab.h ${SRCDIR}/parser.tab.h
  80.  
  81. ${SRCDIR}/lexer.tab.c: ${SRCDIR}/lexer.l
  82.     ${LEX} -t ${LFLAGS} ${SRCDIR}/lexer.l > ${SRCDIR}/lexer.tab.c
  83.  
  84. clean:
  85.     rm -f ${OBJS} version.o mindycomp *~ \#* core
  86.  
  87. realclean:
  88.     rm -f ${OBJS} version.o parser.tab.c parser.tab.h lexer.tab.c mindycomp Makefile *~ \#* core
  89.     
  90. install: mindycomp
  91.     ${INSTALL_PROGRAM} mindycomp ${BINDIR}/mindycomp
  92.  
  93. # It's easiest to generate this part by machine.
  94. # Try gcc -MM -E *.c | perl ../etc/generate-depends
  95.  
  96. compile.o :  ${SRCDIR}/compile.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  97.              ${SRCDIR}/src.h ${SRCDIR}/dump.h ${SRCDIR}/lexenv.h \
  98.              ${SRCDIR}/envanal.h ${SRCDIR}/sym.h ${SRCDIR}/literal.h \
  99.              ${SRCDIR}/compile.h ${SRCDIR}/byteops.h ${SRCDIR}/info.h \
  100.              ${SRCDIR}/lose.h
  101.     ${CC} -c ${CFLAGS} ${SRCDIR}/compile.c
  102.  
  103. dump.o :  ${SRCDIR}/dump.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/../compat/std-os.h \
  104.           ${SRCDIR}/mindycomp.h ${SRCDIR}/src.h ${SRCDIR}/literal.h \
  105.           ${SRCDIR}/sym.h ${SRCDIR}/fileops.h ${SRCDIR}/compile.h \
  106.           ${SRCDIR}/dump.h ${SRCDIR}/version.h ${SRCDIR}/envanal.h \
  107.           ${SRCDIR}/lose.h
  108.     ${CC} -c ${CFLAGS} ${SRCDIR}/dump.c
  109.  
  110. dup.o :  ${SRCDIR}/dup.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  111.          ${SRCDIR}/src.h ${SRCDIR}/literal.h ${SRCDIR}/free.h \
  112.          ${SRCDIR}/lose.h ${SRCDIR}/dup.h
  113.     ${CC} -c ${CFLAGS} ${SRCDIR}/dup.c
  114.  
  115. envanal.o :  ${SRCDIR}/envanal.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  116.              ${SRCDIR}/src.h ${SRCDIR}/lexenv.h ${SRCDIR}/envanal.h \
  117.              ${SRCDIR}/sym.h ${SRCDIR}/lose.h
  118.     ${CC} -c ${CFLAGS} ${SRCDIR}/envanal.c
  119.  
  120. expand.o :  ${SRCDIR}/expand.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  121.             ${SRCDIR}/src.h ${SRCDIR}/literal.h ${SRCDIR}/dup.h \
  122.             ${SRCDIR}/free.h ${SRCDIR}/sym.h ${SRCDIR}/expand.h \
  123.             ${SRCDIR}/info.h ${SRCDIR}/lose.h
  124.     ${CC} -c ${CFLAGS} ${SRCDIR}/expand.c
  125.  
  126. free.o :  ${SRCDIR}/free.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  127.           ${SRCDIR}/src.h ${SRCDIR}/literal.h ${SRCDIR}/free.h \
  128.           ${SRCDIR}/lose.h
  129.     ${CC} -c ${CFLAGS} ${SRCDIR}/free.c
  130.  
  131. header.o :  ${SRCDIR}/header.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  132.             ${SRCDIR}/header.h
  133.     ${CC} -c ${CFLAGS} ${SRCDIR}/header.c
  134.  
  135. info.o :  ${SRCDIR}/info.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  136.           ${SRCDIR}/src.h ${SRCDIR}/sym.h ${SRCDIR}/info.h
  137.     ${CC} -c ${CFLAGS} ${SRCDIR}/info.c
  138.  
  139. lexenv.o :  ${SRCDIR}/lexenv.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  140.             ${SRCDIR}/src.h ${SRCDIR}/lexenv.h
  141.     ${CC} -c ${CFLAGS} ${SRCDIR}/lexenv.c
  142.  
  143. lexer.tab.o :  ${SRCDIR}/lexer.tab.c ${SRCDIR}/./lexer.h ${SRCDIR}/./src.h \
  144.                ${SRCDIR}/./parser.tab.h
  145.     ${CC} -c ${CFLAGS} ${SRCDIR}/lexer.tab.c
  146.  
  147. literal.o :  ${SRCDIR}/literal.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  148.              ${SRCDIR}/literal.h ${SRCDIR}/lose.h
  149.     ${CC} -c ${CFLAGS} ${SRCDIR}/literal.c
  150.  
  151. lose.o :  ${SRCDIR}/lose.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/lose.h
  152.     ${CC} -c ${CFLAGS} ${SRCDIR}/lose.c
  153.  
  154. mindycomp.o :  ${SRCDIR}/mindycomp.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/../compat/std-os.h \
  155.                ${SRCDIR}/mindycomp.h ${SRCDIR}/parser.h ${SRCDIR}/src.h \
  156.                ${SRCDIR}/print.h ${SRCDIR}/expand.h ${SRCDIR}/envanal.h \
  157.                ${SRCDIR}/lexer.h ${SRCDIR}/header.h ${SRCDIR}/sym.h \
  158.                ${SRCDIR}/info.h ${SRCDIR}/compile.h ${SRCDIR}/dump.h
  159.     ${CC} -c ${CFLAGS} ${SRCDIR}/mindycomp.c
  160.  
  161. parser.tab.o :  ${SRCDIR}/parser.tab.c ${SRCDIR}/./../compat/std-c.h ${SRCDIR}/./mindycomp.h \
  162.                 ${SRCDIR}/./header.h ${SRCDIR}/./parser.h ${SRCDIR}/./lexer.h \
  163.                 ${SRCDIR}/./literal.h ${SRCDIR}/./src.h ${SRCDIR}/./sym.h
  164.     ${CC} -c ${CFLAGS} ${SRCDIR}/parser.tab.c
  165.  
  166. print.o :  ${SRCDIR}/print.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  167.            ${SRCDIR}/src.h ${SRCDIR}/sym.h ${SRCDIR}/literal.h \
  168.            ${SRCDIR}/print.h ${SRCDIR}/lose.h
  169.     ${CC} -c ${CFLAGS} ${SRCDIR}/print.c
  170.  
  171. src.o :  ${SRCDIR}/src.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  172.          ${SRCDIR}/sym.h ${SRCDIR}/lexer.h ${SRCDIR}/literal.h \
  173.          ${SRCDIR}/src.h ${SRCDIR}/info.h ${SRCDIR}/lose.h
  174.     ${CC} -c ${CFLAGS} ${SRCDIR}/src.c
  175.  
  176. sym.o :  ${SRCDIR}/sym.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
  177.          ${SRCDIR}/sym.h
  178.     ${CC} -c ${CFLAGS} ${SRCDIR}/sym.c
  179.  
  180. version.o :  ${SRCDIR}/version.c ${SRCDIR}/version.h
  181.     ${CC} -c ${CFLAGS} ${SRCDIR}/version.c
  182.